package com.sxh.user.map;

import com.sxh.user.model.UserInfo;
import com.sxh.user.model.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMap {
    //查询单个用户
    @Select("select * from user where user_id = #{id}")
    Users queryById(Long id);
    //插入用户表
    int insertUser(Users user);
    //据idList分页查询
    List<Users> queryByIdList(List<Long> userIdList, Integer begin, Integer pageSize);
    //修改用户信息
    void updateUser(Users user);

}
